import apiClient from "../apiClient";

export enum UserApi {
	getDataSectionHistorylist = "/wprtbs/datamgrpc/getDataSectionHistorylist",
  getDataDsByID = "/wprtbs/datamgrpc/getDsByID",
  getHistoryDataSectionLinelist = "/wprtbs/datamgrpc/getHistoryDataSectionLinelist",
  exportDataSectionHistorylist = "/wprtbs/datamgrpc/exportDataSectionHistorylist"
}

const getDataSectionHistorylist = (data: any) => apiClient.post({ url: UserApi.getDataSectionHistorylist, data });
const getDataDsByID = (data: any) => apiClient.get({ url: UserApi.getDataDsByID, params: data });
const getHistoryDataSectionLinelist = (data: any) => apiClient.post({ url: UserApi.getHistoryDataSectionLinelist, data });
const exportDataSectionHistorylist = (data: any) => apiClient.get({ url: UserApi.exportDataSectionHistorylist, params: data });

export default {
	getDataSectionHistorylist,
	getDataDsByID,
	getHistoryDataSectionLinelist,
	exportDataSectionHistorylist
};
